import {
	KanBanViewActionType,
	IKanBanViewStore,
	IKanBanViewController,
	IKanBanAbility,
	IKanBanViewAbility,
} from '@/core/interface';
import { MDViewController } from './md-view-controller';

export class KanBanViewController
	extends MDViewController<
		KanBanViewActionType,
		IKanBanViewStore,
		IKanBanViewAbility
	>
	implements IKanBanViewController<IKanBanViewStore, IKanBanViewAbility>
{
	/**
	 * 获取看板部件能力
	 *
	 * @protected
	 * @return {*}  {(IKanBanAbility | undefined)}
	 * @memberof GridViewController
	 */
	protected getMainCtrlAbility(): IKanBanAbility | undefined {
		return this.getSubAbility<IKanBanAbility>('kanban');
	}
}
